﻿<%@ Page Language="C#" MasterPageFile="~/MasterPageAdmin.master" AutoEventWireup="true" CodeFile="WebContent.aspx.cs" Inherits="Admin_WebContent" Title="itoStore" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit.HTMLEditor"
    TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:Panel ID="pnlList" runat="server">
        <table border="0" cellpadding="0" cellspacing="1" width="600" align="center">
            <tr>
                <td style="text-align: left; font-size: 12px;">
                    <asp:ListView runat="server" ID="lvData" ItemPlaceholderID="groupPlaceholder" GroupItemCount="1"
                        GroupPlaceholderID="layoutTemplate">
                        <LayoutTemplate>
                            <table id="layoutTemplate" runat="server" width="90%">
                            </table>
                        </LayoutTemplate>
                        <GroupTemplate>
                            <tr>
                                <div id="groupPlaceholder" runat="server">
                                </div>
                            </tr>
                        </GroupTemplate>
                        <ItemTemplate>
                            <td style="padding: 5px 0 5px 0;" onmouseover="this.bgColor = '#FFFFCC';" onmouseout="this.bgColor = '#FFFFFF';">
                                <fieldset>
                                    <legend>&nbsp;&nbsp;<asp:Label ID="lblTitle" runat="server" Text='<%# Eval("ItemID") %>'></asp:Label>&nbsp;&nbsp;</legend>
                                    <p style="font-size: 12px; text-align: left;">
                                        <b>Tính Năng Nổi Bật:</b>&nbsp;<asp:Label ID="Label2" runat="server" Text='<%# Server.HtmlDecode(Eval("TinhNangNoiBat").ToString())%>'></asp:Label></p>
                                        
                                        <p style="font-size: 12px; text-align: left;">
                                        <asp:LinkButton ID="cmdEdit" runat="server" Text="Edit" PostBackUrl='<%# "~/Admin/WebContent.aspx?id=TinhNangNoiBat&idSP=" + Eval("ItemID") + "&idDetails=" + Eval("ItemDetailsID")%>' />
                                    </p>
                                    <p style="font-size: 12px; text-align: left;">
                                        <b>Giải Trí:</b>&nbsp;<asp:Label ID="Label1" runat="server" Text='<%# Server.HtmlDecode(Eval("GiaiTri").ToString()) %>'></asp:Label></p>
                                        <p style="font-size: 12px; text-align: left;">
                                        <asp:LinkButton ID="cmdEdit1" runat="server" Text="Edit" PostBackUrl='<%# "~/Admin/WebContent.aspx?id=GiaiTri&idSP=" + Eval("ItemID") + "&idDetails=" + Eval("ItemDetailsID")%>' />
                                    </p>
                                    <p style="font-size: 12px; text-align: left;">
                                        <b>Ứng Dụng:</b>&nbsp;<asp:Label ID="Label3" runat="server" Text='<%# Server.HtmlDecode(Eval("UngDungvaTroChoi").ToString()) %>'></asp:Label></p>
                                        <p style="font-size: 12px; text-align: left;">
                                        <asp:LinkButton ID="cmdEdit2" runat="server" Text="Edit" PostBackUrl='<%# "~/Admin/WebContent.aspx?id=UngDungvaTroChoi&idSP=" + Eval("ItemID") + "&idDetails=" + Eval("ItemDetailsID")%>' />
                                    </p>
                                    <p style="font-size: 12px; text-align: left;">
                                        <b>Nhạc Chuông:</b>&nbsp;<asp:Label ID="Label4" runat="server" Text='<%# Server.HtmlDecode(Eval("NhacChuong").ToString()) %>'></asp:Label></p>
                                        <p style="font-size: 12px; text-align: left;">
                                        <asp:LinkButton ID="cmdEdit3" runat="server" Text="Edit" PostBackUrl='<%# "~/Admin/WebContent.aspx?id=NhacChuong&idSP=" + Eval("ItemID") + "&idDetails=" + Eval("ItemDetailsID")%>' />
                                    </p>
                                    <p style="font-size: 12px; text-align: left;">
                                        <b>Bộ Nhớ:</b>&nbsp;<asp:Label ID="Label5" runat="server" Text='<%# Server.HtmlDecode(Eval("BoNho").ToString()) %>'></asp:Label></p>
                                        <p style="font-size: 12px; text-align: left;">
                                        <asp:LinkButton ID="cmdEdit4" runat="server" Text="Edit" PostBackUrl='<%# "~/Admin/WebContent.aspx?id=BoNho&idSP=" + Eval("ItemID") + "&idDetails=" + Eval("ItemDetailsID")%>' />
                                    </p>
                                    <p style="font-size: 12px; text-align: left;">
                                        <b>Danh Bạ - Email:</b>&nbsp;<asp:Label ID="Label6" runat="server" Text='<%# Server.HtmlDecode(Eval("DanhBaTinNhanEmail").ToString()) %>'></asp:Label></p>
                                        <p style="font-size: 12px; text-align: left;">
                                        <asp:LinkButton ID="cmdEdit5" runat="server" Text="Edit" PostBackUrl='<%# "~/Admin/WebContent.aspx?id=DanhBaTinNhanEmail&idSP=" + Eval("ItemID") + "&idDetails=" + Eval("ItemDetailsID")%>' />
                                    </p>
                                    <p style="font-size: 12px; text-align: left;">
                                        <b>Kết Nối Dữ Liệu:</b>&nbsp;<asp:Label ID="Label7" runat="server" Text='<%# Server.HtmlDecode(Eval("KetNoiDuLieu").ToString()) %>'></asp:Label></p>
                                        <p style="font-size: 12px; text-align: left;">
                                        <asp:LinkButton ID="cmdEdit6" runat="server" Text="Edit" PostBackUrl='<%# "~/Admin/WebContent.aspx?id=KetNoiDuLieu&idSP=" + Eval("ItemID") + "&idDetails=" + Eval("ItemDetailsID")%>' />
                                    </p>
                                    <p style="font-size: 12px; text-align: left;">
                                        <b>Thông Tin Chung :</b>&nbsp;<asp:Label ID="Label8" runat="server" Text='<%# Server.HtmlDecode(Eval("ThongTinChung").ToString()) %>'></asp:Label></p>
                                        <p style="font-size: 12px; text-align: left;">
                                        <asp:LinkButton ID="cmdEdit7" runat="server" Text="Edit" PostBackUrl='<%# "~/Admin/WebContent.aspx?id=ThongTinChung&idSP=" + Eval("ItemID") + "&idDetails=" + Eval("ItemDetailsID")%>' />
                                    </p>
                                    <p style="font-size: 12px; text-align: left;">
                                        <b>Nguồn:</b>&nbsp;<asp:Label ID="Label9" runat="server" Text='<%# Server.HtmlDecode(Eval("Nguon").ToString()) %>'></asp:Label></p>
                                    <%--<p style="font-size: 12px; text-align: left;">
                                        <b>Page:</b>&nbsp;<asp:Label ID="lblPage" runat="server" Text='<%# Eval("Page") %>'></asp:Label>
                                    </p>--%>
                                    <p style="font-size: 12px; text-align: left;">
                                        <asp:LinkButton ID="cmdEdit8" runat="server" Text="Edit" PostBackUrl='<%# "~/Admin/WebContent.aspx?id=Nguon&idSP=" + Eval("ItemID") + "&idDetails=" + Eval("ItemDetailsID")%>' />
                                    </p>
                                </fieldset>
                            </td>
                        </ItemTemplate>
                    </asp:ListView>
                </td>
            </tr>
        </table>
    </asp:Panel>
    <%--Edit Panel--%>
    <asp:Panel ID="pnlEdit" runat="server" Visible="false">
        <table border="0" cellpadding="0" cellspacing="20" width="90%" style="text-align: left">
            <tr>
                <td>
                    <table cellpadding="0" cellspacing="0" border="0" width="90%">
                        <tr>
                            <td valign="top">
                                Title:<br />
                                <asp:TextBox ID="txtTitle" runat="server" MaxLength="200" cols="100" Rows="3" TextMode="MultiLine"
                                    Width="70%"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td valign="top">
                                <br />
                                <asp:TextBox ID="txtPage" runat="server" MaxLength="20" cols="30" Visible="False"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td valign="top" style="padding-top: 10px;">
                                Content:
                            </td>
                        </tr>
                        <tr>
                            <td style="padding-top: 5px;">
                               
                                <cc1:Editor ID="txtcontent" runat="server" Height="300px" NoUnicode="True" />
                               
                               </td>
                        </tr>
                        <tr>
                            <td style="padding-top: 10px;" align="center">
                                <asp:Button ID="cmdSave" runat="server" Text="Save" CssClass="btn" OnClick="cmdSave_Click" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </asp:Panel>
</asp:Content>

